﻿<UserControl x:Class="SilverlightParser.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="402" d:DesignWidth="570" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" DataContext="{Binding}" Loaded="UserControl_Loaded">

    <Grid x:Name="LayoutRoot" Background="White" Height="402" Width="582">
        <Button Content="Parse" Height="23" HorizontalAlignment="Right" Margin="0,39,12,0" Name="buttonParse" VerticalAlignment="Top" Width="75" Click="buttonParse_Click" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="9,39,0,0" Name="textBoxSentence" VerticalAlignment="Top" Width="468" />
        <data:DataGrid AutoGenerateColumns="False" Height="308" HorizontalAlignment="Left" Margin="12,82,0,0" Name="dataGridSentences" VerticalAlignment="Top" Width="558" GridLinesVisibility="All" SelectionChanged="dataGridSentences_SelectionChanged">
            <data:DataGrid.Columns>
                <data:DataGridTextColumn Binding="{Binding SentenceId}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" Header="Id" />
                <data:DataGridTextColumn Binding="{Binding Words}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="300" Header="Sentence" />
            </data:DataGrid.Columns>
        </data:DataGrid>
    </Grid>
</UserControl>
